<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
int pageNum = Integer.parseInt(request.getParameter("pageNum"));
int pageSize = Integer.parseInt(request.getParameter("pageSize"));
int total = Integer.parseInt("total");
%>
<% if(total/pageSize > 0){ %>
<div class="pagination">
<%
	if(pageNum == 0){
%>
	<span class="firstPage">&nbsp;</span>
<%
	} else {
%>
	<a class="firstPage" href="javascript: $.pageSkip(0);">&nbsp;</a>
<%
	}
%>

<%
	if(pageNum - 1 >= 0){
%>
	<a class="previousPage" href="javascript: $.pageSkip(<%=pageNum - 1 %>);">&nbsp;</a>
<%
	} else {
%>
	<span class="previousPage">&nbsp;</span>
<%
	}
%>

<%
	if(pageNum < total/pageSize){
%>
	<a class="nextPage" href="javascript: $.pageSkip(<%=pageNum + 1 %>);">&nbsp;</a>
<%
	} else {
%>
	<span class="nextPage">&nbsp;</span>
<%
	}
%>

<%
	if(pageNum == total/pageSize){
%>
	<span class="lastPage">&nbsp;</span>
<%
	} else {
%>
	<a class="lastPage" href="javascript: $.pageSkip(<%=total/pageSize %>);">&nbsp;</a>
<%
	}
%>
	<span class="pageSkip">
		共<%=total/pageSize %>页 到第<input id="pageNumber" name="pageNumber" value="" maxlength="9" onpaste="return false;" />页<button type="submit">&nbsp;</button>
	</span>
</div>
<%} %>